//
//  AccountDetailsTableViewCell.m
//  PlayerWorld
//
//  Created by 1 on 16/5/13.
//  Copyright © 2016年 刘成. All rights reserved.
//
#define UISCREEN_WIDTH  [UIScreen mainScreen].bounds.size.width
#define UISCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#import "AccountDetailsTableViewCell.h"

@implementation AccountDetailsTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
//        // 彩种图片
//        UIImageView *theImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 10, 50, 50)];
//        [theImageView setImage:[UIImage imageNamed:@"logo_qtc_2_lg"]];
//        [self.contentView addSubview:theImageView];
        
        // 彩种标题
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, UISCREEN_WIDTH-120, 20)];
        self.titleLabel.font = [UIFont systemFontOfSize:14];
        self.titleLabel.textColor = [UIColor lightGrayColor];
        self.titleLabel.text = @"交易时间：12：00：00";
        [self.contentView addSubview:self.titleLabel];
        
        // 彩种标题
        self.title2Label = [[UILabel alloc] initWithFrame:CGRectMake(UISCREEN_WIDTH-30-50, 10, 50, 20)];
        self.title2Label.font = [UIFont systemFontOfSize:14];
        self.title2Label.textColor = [UIColor lightGrayColor];
//        self.title2Label.text = @"时时彩";
        self.title2Label.textAlignment = NSTextAlignmentRight;
        [self.contentView addSubview:self.title2Label];

        
        // 彩种副标题
        self.subheadingLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 30, UISCREEN_WIDTH-120, 20)];
        self.subheadingLabel.font = [UIFont systemFontOfSize:14];
        self.subheadingLabel.textColor = [UIColor lightGrayColor];
        self.subheadingLabel.text = @"交易类型：购买彩票";
        [self.contentView addSubview:self.subheadingLabel];
        
        // 彩种截止时间
        self.betcutoffLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 60, UISCREEN_WIDTH-120, 20)];
        self.betcutoffLabel.font = [UIFont systemFontOfSize:14];
        self.betcutoffLabel.textColor = [UIColor lightGrayColor];
        self.betcutoffLabel.text = @"6.00元";
        [self.contentView addSubview:self.betcutoffLabel];
        
        // 彩种截止时间
        self.betcutoff2Label = [[UILabel alloc] initWithFrame:CGRectMake(UISCREEN_WIDTH-30-100, 60, 100, 20)];
        self.betcutoff2Label.font = [UIFont systemFontOfSize:14];
        self.betcutoff2Label.textColor = [UIColor redColor];
        self.betcutoff2Label.text = @"53219.00元";
        self.betcutoff2Label.textAlignment = NSTextAlignmentRight;
        [self.contentView addSubview:self.betcutoff2Label];

        
        // 彩种详情
        self.colordetailsImageView = [[UIImageView alloc] initWithFrame:CGRectMake(UISCREEN_WIDTH-15-10, (100-15)/2, 10, 15)];
        [self.colordetailsImageView setImage:[UIImage imageNamed:@"icon_arrow"]];
        [self.contentView addSubview:self.colordetailsImageView];
    }
    return self;
}

@end
